import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'main',
        component: () =>
                import ('../views/index.vue'),
        children: [{
            path: '/index',
            name: 'index',
            component: () =>
                        import ('../views/info.vue')
        },
        {
            path: '/accountMessage',
            name: 'accountMessage',
            component: () =>
                        import ('../views/accountMessage.vue')
        },
        {
            path: '/guestLog',
            name: 'guestLog',
            component: () =>
                        import ('../views/guestLog.vue')
        },
        {
            path: '/other',
            name: 'other',
            component: () =>
                        import ('../views/other.vue')
        }

        ]
    },
    {
        path: '/crossShop',
        name: 'crossShop',
        component: () => import('../views/crossShop.vue')
    }

    ]
})